package com.woniu.liuzhougov.authorityControl.pojo;

import com.woniu.liuzhougov.authorityControl.verification.AddRole;
import com.woniu.liuzhougov.authorityControl.verification.EditRole;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class Role {
    @NotNull(message = "角色id不能为空!",groups = {EditRole.class})
    private Integer roleId;

    @NotBlank(message = "角色名不能为空!",groups = {AddRole.class,EditRole.class})
    private String roleName;

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}